﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MODEL;
using DAL;

namespace BLL
{
    public class BllStock
    {
        public int Insert(Stock s)
        {
            return new DalStock().Insert(s);
        }
        public int Update(Stock s)
        {
            return new DalStock().Update(s);
        }
        public int UpdateStockNum(int num, int id)
        {
            return new DalStock().UpdateStockNum(num, id);
        }
        public int IsExistByDicId(int dicId)
        {
            return new DalStock().IsExistByDicId(dicId);
        }

        public List<Stock> GetByPY(string namePY)
        {
            return new DalStock().GetByPY(namePY);
        }

        public Stock GetById(int id)
        {
            return new DalStock().GetById(id);
        }

        public List<Stock> GetAll()
        {
            return new DalStock().GetAll();
        }
    }
}
